pp108 : validationLevel Property

validationLevel Property


String that denotes the level of validation that can be performed on the field.

Syntax

HTML <ELEMENT id=elementID fieldType=sType validationLevel=sLevel...>...</ELEMENT>
Scripting elementID.validationLevel [ =sLevel ]
HTML
 <div cordysType="wcp.library.util.Validate" id="validateID" validationLevel=sLevel></div>


Parameters

Parameter Description
sLevel String that denotes the level of validation that is performed on the field.
field Default. Validation is done at field level, when the control moves out of focus.
form Validation is done at form level, on explicit call when the page is closed, or unloaded.


Remarks


When thevalidationLevelproperty is set to "field" for a field, andrequiredattribute is also set on it, then the validation is preformed when that field is out of focus.

However, this default behavior can be overwritten by setting the validationLevel to form on each field, or on the component definition itself. Then validation can be performed at any time by calling thecheckAllFieldsmethod.

See Also


validate, checkAllFields